#define  _CRT_SECURE_NO_WARNINGS 1

//struct stu {
//	int age;
//	char name[10];
//}s2,s3;


#include <stdio.h>
int main() {

	/*struct stu s1 = {10,"zhangsan"};
	struct stu s4 = { .name = "lisi",.age = 20 };
	printf("%d", s1.age);*/

	/*int a = 10;
	short s = 5;
	int b = s + a;*/

	/*char c1 = 5;
	char c2 = 126;
	char c3 = c1+c2;
	printf("%d\n", c3);*/

	/*int a = 10;
	int* pa = &a;*/

	int arr[10] = { 1,2,3,3,3,3,7,8,9,1 };
	int l = 0; int r = 9;
	while (l<r) {
		while ((arr[l] % 2) != 0) {
			l++;
		}
		while ((arr[r]%2)==0) {
			r--;
		}
		if (l < r) {
			int c = 0;
			c = arr[l];
			arr[l] = arr[r];
			arr[r] = c;
		}
	}

	for (int i = 0; i < 10; i++) {
		printf("%d ", arr[i]);
	}
	return 0;
}